//
//  ToastTools.h
//  MTime
//
//  Created by imac on 2017/8/14.
//  Copyright © 2017年 imac. All rights reserved.
//

#import <Foundation/Foundation.h>/Users/weixin/Downloads/README 2.md
//#import "AreaSelectionViewController.h"
typedef void(^CancelButtonBlock)(void);
typedef void(^ConfirmButtonBlock)(NSString *confirmText);
typedef void(^TFConfirmBlock)(NSString *confirmText);
@interface ToastTools : NSObject

/** 无标题弹窗 */
+ (void)showDialogWithContent:(NSString *)content cancelAction:(void (^)(void))cancelAction submitAction:(void (^)(void))submitAction;
/** 无标题弹窗，自定义按钮文字 */
+ (void)showCustomeDialogWithContent:(NSString *)content cancelTitle:(NSString *)cancelTitle comfirmTitle:(NSString *)comfirmTitle cancelAction:(void (^)(void))cancelAction submitAction:(void (^)(void))submitAction;
/** 无标题弹窗，只有确定按钮的弹窗 */
+ (void)showConfirmDialogWithContent:(NSString *)content submitAction:(void (^)(void))submitAction;

/** 带标题弹窗 */
+ (void)showDialogWithTitle:(NSString *)title content:(NSString *)content submitAction:(void (^)(void))submitAction;
/** 带标题弹窗 只有确定按钮的弹窗 */
+ (void)showDialogWithTitle:(NSString *)title content:(NSString *)content onlySubmitAction:(void (^)(void))submitAction;
/** 带标题弹窗 自定义按钮文字 */
+ (void)showDialogWithTitle:(NSString *)title content:(NSString *)content cancelTitle:(NSString *)cancelTitle submitTitle:(NSString *)submitTitle cancelAction:(void (^)(void))cancelAction submitAction:(void (^)(void))submitAction;

/** 从底部向上弹窗 */
- (void)showDialogWithTitleView:(UIView *)titleView optionViewOne:(UIView *)optionViewOne optionViewTwo:(UIView *)optionViewTwo;
/** 弹窗 */
- (void)hideViewWithAnimated:(BOOL)animated completion:(void(^)(void))completion;

/** 打开地区选择器 */
//+ (void)showAreaSelectorWithSelectionMode:(AreaSelectionMode)mode dataSourceArray:(NSArray *)array callback:(RegionSelectionCallback)callback;
//+ (void)showInputTextFieldControllerWithPlaceholderLabel:(NSString *)label keyboardType:(UIKeyboardType)keyboardType cancelButton:(CancelButtonBlock)cancel confirmButton:(ConfirmButtonBlock)confirm;

/** 弹窗式输入框 */
//+ (void)showDialogTFWithTitle:(NSString *)title tfPlaceholder:(NSString *)placeholder maxTextLength:(NSInteger)maxTextLength confirmCallback:(TFConfirmBlock)callback;

@end
